package zdream.pmfield.stage.action;

import zdream.pmfield.stage.buff.StageBuff;

/**
 * @author Zdream
 * @date 2023-11-25
 * @since 0.0.1
 */
public class BuffAction extends StageAction {
	public StageBuff<?> buff;
	public String task;
	public int innerId = -1;

	@Override
	public int getInnerId() {
		return innerId == -1 ? (innerId = buff.target.getStage().getNextIdAndIncrease()) : innerId;
	}

	@Override
	public boolean isForBuff() {
		return true;
	}

	@Override
	public BuffAction asBuff() {
		return this;
	}

	@Override
	public String toString() {
		return (buff == null ? "???" : buff.toString()) + ": " + task;
	}
}
